package cn.dnf.service.impl;

import cn.dnf.domain.Product;
import cn.dnf.domain.Store;

import cn.dnf.mapper.StoreMapper;
import cn.dnf.service.IStoreService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StoreServiceImpl implements IStoreService {
    @Autowired
    private StoreMapper storeMapper;
    @Override
    public void add(Product product) {
        Store store = new Store();
        store.setProductId(product.getId());
        store.setNumber(product.getNumber());
        storeMapper.add(store);
    }
}
